package com.da.springtest.autowired.test4;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

@Component
public class Service2 {

    @Resource
    private IService service1;

    @Override
    public String toString() {
        return "Service2{" +
            "service1=" + service1 +
            '}';
    }
}